<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateHospitalInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('hospital_infos', function (Blueprint $table) {
            $table->id();
            $table->string('banner');
            $table->string('title_logo');
            $table->string('tel');
            $table->text('description');
            $table->string('address');
            $table->string('open_date');
            $table->string('lng');
            $table->string('lat');
            $table->json('images')->nullable();
            $table->json('lines')->nullable();

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('hospital_infos');
    }
}
